import wsgiserver
import sys
import os
import django.core.handlers.wsgi

if __name__ == "__main__":
	sys.path.append('/home/ben/Documents/')
	os.environ['DJANGO_SETTINGS_MODULE'] = 'the-social-interface.settings'
	server = wsgiserver.CherryPyWSGIServer(
		('127.0.0.1', 8020),
		django.core.handlers.wsgi.WSGIHandler(),
		server_name='sif.com',
		numthreads = 20,
	)
	try:
		server.start()
	except KeyboardInterrupt:
		server.stop()
